package com.hawk.eye.server.domain.vo.req;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 *
 * @author salad
 * @date 2023-10-23
 */
@Data
public class RepairApiReqVO {

    private Long id;

    @NotBlank(message = "脚本名称不能为空")
    @Size(max = 30, message = "脚本名称长度必须在30以内")
    private String name;

    private List<RepairToProblemReqVO> problemList;

    private Long createUser;

    private Date createTime;

    private Integer reqType;

    @NotBlank(message = "请求地址不能为空")
    private String reqUri;

    private String reqHeaders;

    @Size(max = 200, message = "脚本描述长度必须在200以内")
    private String repairDesc;

    private String reqParams;

    private String reqBody;

    private Long execCount;

    private Long execSuccessCount;

    private LocalDateTime lastExecTime;

    private Integer lastExecSuccessful;

    private Long lastExecUser;

    private String lastExecUserName;

    private String headersAsString;

    private String paramsAsString;

    private String bodyAsString;

    private String paramName;

    private String paramValue;

    private Long workOrderId;

}
